package com.prabhat.webapp.realm;

import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.realm.AuthenticatingRealm;
/**
 * 
 * @author prabhat.k
 * @date 14/09/2014
 * 
 */
public class RSAAuthenticationRealm extends AuthenticatingRealm {

	@Override
	protected AuthenticationInfo doGetAuthenticationInfo(
			AuthenticationToken token) throws AuthenticationException {
		// TODO Call RSA after IntergrationService impl is done
		return null;
	}
	
	@Override
	protected void assertCredentialsMatch(AuthenticationToken token,
			AuthenticationInfo info) throws AuthenticationException {
		return;
	}
	
	/*@Override
	public boolean supports(AuthenticationToken token) {
		// TODO Auto-generated method stub
		return (token instanceof RSAAuthenticationToken);
	}*/

}
